import { Component } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { HttpService } from './config/http.service';
import { DownLoaderService } from './config/downloader.service';
import { Config } from './config/config.interface';
import { filter } from 'rxjs/operators';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent {
  title = 'myAngular';
  config: Config;
  headers;
  contents;
  // ClientOpts= RedisClient;
  constructor(private router: Router, private http: HttpService, private downloaderService: DownLoaderService) {

  }
  ngOnInit() {
    this.router.events
      .pipe(filter(evt => evt instanceof NavigationEnd))
      .subscribe();
      
      // console.log(this.ClientOpts)
  }
  
}
